package com.ymttest.business.data;

import java.util.List;
import java.util.Map;

import com.ymt.core.tool.FormatUtil;
import com.ymttest.database.mongo.UserTokenWapper;
import com.ymttest.utils.TestDataManager;

public class GetToken {
	public static void main(String args[]) throws Exception{
	List<String> jsons=new UserTokenWapper().getUserTokenBytSources("app",50000);
	for (String json : jsons) {
		String AccessToken=((Map)FormatUtil.GSONToObject(json, Map.class)).get("sId").toString();
		Object ouid=((Map)FormatUtil.GSONToObject(json, Map.class)).get("uId");
		Integer uid=new Double(ouid.toString()).intValue();
		TestDataManager.appendFileToLine("token", AccessToken);
	}
}
}
